package cn.myzqu.start.lambda.entity;

public class Student {

    private String name;
    private Integer age;

    public Student(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public static void main(String[] args) {
        int min = 10;
        int max = 10000;

        while (true) {
            int value = (int) (min + Math.random() * (max - min + 1));
            if (value < min) {
                System.err.println("小于最小值：" + value);
            }else if (value > max) {
                System.err.println("大于最大值：" + value);
            }else {
                System.err.println(value);
            }
        }
    }
}
